<?php
/**
 * oscshop 电子商务系统
 *
 * ==========================================================================
 * @link      http://www.oscshop.cn/
 * @copyright Copyright (c) 2015 oscshop.cn.
 * @license   http://www.oscshop.cn/license.html License
 * ==========================================================================
 *
 * @author    李梓钿
 *
 */
namespace Home\Controller;

class PushController extends CommonController
{
    protected $push;

    protected function _initialize()
    {

    }

    public function test()
    {
        $fetion = new \Org\Util\JPush_test();
        $receive = array('tag'=>array('师傅'));//别名
        $content = 'bbbb';
        $m_type = 'tb';
        $m_txt = '891';
        $m_time = '600';        //离线保留时间
        $res=$fetion->send_pub($receive, $content ,$m_type, $m_txt ,$m_time);
        var_dump($res);
    }


}